<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>mock</title>
    <!-- 引入mock ：模拟接口数据-->
    <script src="../node_modules/mockjs/dist/mock-min.js"></script>
</head>

<body>
    <script>
        let testString = Mock.mock({
            "string|1-10": "★"
        })
        console.log(testString);
    </script>
</body>

</html>